package utils;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Administrator on 2016/7/21.
 */
public class CarServiceOpenHelper extends SQLiteOpenHelper {
    /**
     *
     * LoginBean表建表语句
     */
    private  String DB_Name ;

    public CarServiceOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
        this.DB_Name = name;
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        String CREATE_LOGIN ="create table"+" "+DB_Name+" ("
                +"Login_id varchar(20),"
                +"Login_phone varchar(20), "
                +"Login_password varchar(20), "
                +"Login_username varchar(20),"+"Login_headPhoto text)";
        db.execSQL(CREATE_LOGIN);

    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
